Failed to simplify the grammar