bugfix and made lodash available in templates