Fix path lookup bug