Quick fix for potential viewport error on XP