Fixed for-loop declaration