Fixed bug with DefaultPath function