fixed flicker bug in webkit browsers