fixes #14, fixes updating issue when changing the grammar language