Major bug correction on logical actions + Agent Log