Fixed a bug with the automatic content type detection