Fixing ticket number detection