Fixes bug when changing language