fixed bug #2650