fix error in for