Found strange bug in pathname lookup