From Sergey: Fix stats box drawn incorrectly when resized