fixed the cleaning message being sent to the wrong processes