Fix deletion of ticket by its token