Xiaomi MiBox 2nd Gen Kodi keeps resetting to default

So I have a second gen MiBox installed with Jarvis. But Everytime the box restarts Kodi would be rest to default, erasing all settings including installed add-on and repo etc. Any idea guys? Thanks