timing fix for Safari