Fixed flickering problem.