fix error and change file path extension