fix deregister