[core] bug fix working with content type detection