Fixed pathname_type bug