fixing send bug