Bug fixing: input_fields variable not set