Fixed KBT #65, 182 and AI-related commandService bug