Fixed typos
Bugy fixing in named reference generation
Bug fix in named_references_only setting