Fixed two minor bugs.