preivew path bug fix