Fix grid emptying contents on refresh