fixed incorrect data sending