fix command check