added tickets_allocated field for bug checking, found bug