Fixed case where value_def was not defined