fixing references