fix a bug for back button in firefox