fixed a reference error