Fixes window won't reload if URL contains a hash