fix incorrect has flag which was preventing errors from being reported