fix a bug in detecting if the requested point is in domain or not