Wrong varname. nTargetStakeSpacing -> nStakeTargetSpacing