Fix schema script