Fixed an embarrassing typo and a reference bug.