fixed wrong pieces binary data splitting