fixing bug where languages wouldnt switch