Correct determination of mime