fixed a bug in the language class