Fixed a bug in rtickets