fix IndexOutOfBoundsException. ws request for write, but has no data, strange