a pair of small fixes