fixed bug 1738
fixed bug 1755
fixed bug 1744
fixed bug 1739
fixed bug1733
fixed bug 1734
fixed bug 1735
fixed bug 1764
fixed bug 1746