fix no-refresh-on-back-button issue that occured on Safari