Bug fixes in ticket distribution