minor circuit fixes