handle invalid schema