fix command comparison