Fix Logical error

Change-Id: I0b07ea92cd9b747772bf1c2376a6a801d524b7d0