Fixed unregister to also use s3 config url