fix model for jsapi