fixed isssue with schema error