fix broken path conditional