Fixed the issue that the schema doesn't consume 'expected'