Fixed bugs on grammar - list of programs not refreshed