corrected bug #7