fixing type in schema definitions