trying to fix a double message bug