api: fix INIT state stuck
#227
+148
−14
Merged
INIT state stuck
#227