fixed directional bug in clearPath.