fixed bug #1897