Fix bug when ticket is bigger then 4096byte