Changed variable name to the correct one after rename