fix search boundary beeing before point