fixed bugs with (1) alert box displaying unknown variable substitution and (2) calling populate list when nothing to populate