Fix syntax for a for-loop