Fix freeze when changing language