Fix check for failures