Fixes missing stat calculation

Improves #28