fix a bug in locating