Fixed backward compatibility for immersive mode