Fixed some mime-type bugs