bugs fixed for 1. showing behavior event/ 2.restarting a task after stop