v267 Fixed buy ticket function