fixing some lodash template evaluation problems