fixed a bug with files without content type