fixed bug #2679

fixed bug #2679