fix schema generator