Fix for issue with grid not displaying correctly.