Fix build when WATCH_INACTIVE is enabled.