Fixed small fix to a bug in GridView.