Fixed the loader bug