Moved getGrid() (WeakReference) to a local var
Merge pull request #373 from yueh/fix-326

Moved getGrid() (WeakReference) to a local var