Fixed bug that caused registrations to fail