fix inital state of APP_MAINT_FLAG