fixed page loading issues after login