Fix two silly bugs.