fix T1101 - panic on bad paths