fixed extractstats bug. order of operations, silly me