* repaired bug when agent added non-existent intention to the unit and
therefore null pointer exception was raised.