Fixing the bug on PotentialPlanner when calculating force in x direction for dangerous pedestrians