Fix grid insection checking from last commit.