typo in fee calculation