Fixed registration bug.