Fixed safari transition bug.

Boy safari is weird.

See if this does the trick for you, it good for me.

Fixed #18