critical fix to loading the page