fix typo and callback
fix inconsistent schemajs response to the frontend