Fix grid loading

This fixes the incorrect boundary map issue.

@kadst43 @ajiraffe