Fixed issue #22.
Save statistics with correct order.