fixed custom command failed.