fix two mistakes