Fixed errors with loading page