Fix asset loader bug