Corrected a wrong named variable in my code