Fixed user id change for daemon mode