fix bug in webkit