ifelse and isvariable was unreliable when LSB was not found