Fixes doubling grid definition text. Closes #927