fixed schema bug