Fixing overflow bug in webkit