Fixing incorrect assert in the behavior

Change-Id: I931d858ed1221da19b3ef769c02879de32464f85