Possible fix for some events/functions not loading properly.