bug with sending data