fix two small defects