change duplicate f's to k's in section 6.12, close #582