stats works in dash, fixes #440

Fixes #440