Restore custom period selector (stats).

see #585