fixed bug in decision engine