Fixed a code glitch where an optional param was not getting set properly