minor fixes for w2grid
Merge pull request #413 from wolfmanx/fix-grid-errors

minor fixes for w2grid