fix bug in inverted outlets.