nsd-service: fixed few bugs and incremented nsd's user id