fixed bug where unknown language did not cause error