fix for the failures under safari/webkit