fixed bug in webkit