fix send wrong logic