throw errors from if tag sometimes