Fixed profile loading and checkForAlert to prevent needless errors