Fix compile error and typo.