sid was defined twice