fix deactivated logging after restart