fix empty languages bug