fixing sending error