Fixed the terminals in grammar bug