Fixed bug in IsRegistered method