xl, xh, yl, yh bug fixed