Default Factory reset when plug in when power off.

Hi all

When I plug in my USB cable my phone does a factor reset.

The white light blinks for a while, and then charges.

Sometimes when I remove the cable and try to boot, it fails, I have to press PWR+VolDown, or boot into bootloader before It turns on.

Always it is FR

I am using safestrap 3.65 with CM11 M2