Always check for grid matching (not only in debug mode)