fix create file based tag throw null pointer exception