Correction error when change images count in row