remove superfluous extension