Fixed reference error in compiler