Fixed bug in language inheritance