fixes for perspective switching