fixed the css mime type detection workaround