fix the wrong x,y solution issue(isInScope)
fix the boundary warning issue