Fixed removing the registrations.