fix bug with languages in tables