little template engine bugfix in addValues()