fixed an issue with tab reloading