Fixed wrong order of command handlers for file actions