[core] better flash content type check
bugfix