Fixed mime type bug on Firefox