Modifying grammar path