Fixed bug when constructor called without schema.