fix bad exten in given