fix invoice send method