fixed more AI problems