Fix for duplicated images after reconnect