fix the bug that back to top not working in firefox