fixed update_invoice