Fix transitions in Safari