Question [Q] Phone erases everything after running out of battery

Every time the phone runs out of battery, it reverts everything to stock. All apps and setting are erased and reset. Basically, I have been trying to not to let it run out of battery, but I decided that I can't stand this anymore. Otherwise, it is running Cyanogenmod 11 very smooth. If anybody knows how to fix it I will greatly appreciate. Thanks!