fixes master schema building