Fixes an issue with boundary data