Fixed various mistakes.