fix webkit flickering problem (hopefully)