fixed schema script