Fixed bug with invoice status