Partially fixed the code so the Jw mapping system test can go further before failure.
Authored by: semor 2008-04-04
Parent: [r5307]
Child: [r5309]