schema script fix