*ai bug fixing