Fixed profile registration bug.