fix two tinny bugs.