fixed intelligence bug