Fix creating duplicate tickets