fix invoice bug