Fixed a bug on schema creation of ncmaster