fix initial state of APP_MAINT_FLAG