Fixed simple but rather embarrassing bug in template inputs