for some reason this is also needed to make it work reliable in webkit browsers