fixed issue where flag wasn't being saved on reload