Fixed function eval statement in checkCmd method