fix out of boundary issue