fixed cancel/flag in command