Fix the logic for sending CREATED and DESTROYED messages