Fixed bug in behaviors.

Change-Id: I9b3f647ecc5f76ab6f9e334c8da7c59fbb0cecf6
Merge "Fixed bug in behaviors."