Fixed misplaced reference error