Fix conditional error

Signed-off-by: Harshavardhana <harsha@hyperbotics.com>