Fix path extension