Fix two small bugs.