fix of flickering