Hi,
The problem is indeed most likely due to the land values.
When defining an open boundary (on the edges of the domain), there must be land values on the neighboring cells along the edge of the domain.
For internal boundaries, there must be land values on 3 out of the 4 sides of the boundary cell(s).
Does that solve your problem?
Best regards
Mathieu