fix replace extension