update reference error