Authtoken generation fix