Fix pay page unload on Firefox