Fix issue with code to correctly calculate J next to boundary