Fixed itteration error