invoice controller fix