Fixed language from file extension bug