Remove mimeMaps first.