fix two small issues