correct a success/fail flag. part of the problem of mantis 3796