fix loader bug