fixed error double command execution