Fixed reference error