Fixed the command check system.