Fix invoice api controller