fixed ignore boundary bug