avoid screen flickering issues.