invoice parse fix