fixed bug where tickets couldn't be closed.