fixed custom command without selection does not run