bug fix for path simulator