fixing name not found bug