Fix potential issue in findPhantom