added fix for some webkit browsers