Adding the line for persp mode to fix certain errors