fixed a bug in the cluster submission of the last data chunk