fix a bugs when inserting a status from object ot array index