fixed ghosting and flickering