Fix two minor bugs.