mimetype detection fix
Bugfixes