Grammar fixing