Fixed page loading issue