fixed Errno 2 on successful registration