Fix for reload/back issues on safari.