Fixed major bug with empty data send to client with index other than 0.