Custom code doesn't work when I unplug the Bit from USB

Hi,

I have tried editing and uploading some code with https://code.circuitmess.com/ and everything went well except the fact that I the code runs only if I let the device(Bit) plugged in the computer.
As soon as I unplug the device from the computer the screen goes white and nothing happens.
Same is with all of the example sketches as well as with my own custom sketches.
Restore Stock firmware works fine.

Thanks in advance.