recover from reference error