Fix profile registration error