boundary fix