Fix remove file extension