Fix typo: test againg filePath not global path, when resolving id.