Path reversing fix