Fixing bug in content type checking.