Fixing the result grid issues