fix AdaptThickness refinement on box boundaries