fixed reference error