fixed the inverted logic that was set by mistake.