Fix wrong condition

Change-Id: I3540ef6dcee83c96336277c50f94250ee1d290c2