serious bugfix. non-minimal models were being returned as minimal