FIX: small bug in RegistrationTask

and now fixed.