small fix to conditional