Fixed bug with language replacement