small typo on deregister, called the safe method