Fixed issue with the loader not loading properly