Fix wrong mime type decision