resolve bug #6