fix locate()