Fixed bug where couldn't add new invoice