removes a needless extension