Heads renamed to Refs when appropriate