fixed regsitry statistics variable typo bug