Fix wrong monitoring tasks comparison