Fixing issue with scanning tickets