fixed loader bug