Fixed a couple of bugs for smithsonian ingestion.