fixed adding of schema