Fixed some webkit bugs