Fix adding a ticket
Better error handling (ugly yet effective)