fix schema creation