fix for Safari compatibility issue - p.s Safari sucks!