correcting error of collection