Fix statistics on dashboard
Make backend complatible with WP3.9