fixed issue with double command issue on active connection