Properly export with proper stat names.

Addresses the rare crash issue introduced in acd4900e819a27a731ffe844dcb2c9064bcb742b.