fixed issue with invoice datasave, closes #16