Fixed schema definition bug