Trying to fix an issue where content is accessed before it is even loaded