Fixing an asyncronous loading issue.