fix bug in sending data window