Fix bug from grammar tab