Fix crash when only reading the boundary
Compile Fix