fix ticket codes overwriting upon multiple purchase by the same user