Fixes incorrect method used in path lookup