Fixed two smaller bugs.