fix some minal defects