corrected bug #6