Fixed close_cmd in grammar