Fixed mimetype detection error