Matt Wringe
committed
on 11 Mar 09
Fix typo which caused modes to not be set properly.