adopt rime api v1.0.
fix crash.