fix bug in IF with !empty