Fix problems in Path Slope and CR212482

Fix problems in Path Slope and CR212482