Fix issue with wrong columns when creating a grid view from an existing one