Fixed schema creation during update