Fixed bug in tickets controller