applied patch from https://github.com/EvanBurchard/inaturalist/pull/1.patch