fixed bug 1772