Fix bug in handling of URL fragments
Fix bug in onPageTransition callback

It was being called twice due to this line.