Fixed flickering issue.