Calculation of end position of cluster was fixed.