Fix double register and run as admin