Fixing path comparison