fix loading pages