Fix for Viewer Stats hangs on MacOSX

This fixes the stats hangs on MacOSX. Tested with 10.8.