fixed java flicker