fix invoice id bug