fixed bug in schema module