fix bug where screen was going blank