debug reference error