fix refs and typo