Fix some bugs in GridFeature