Fix paradoxical bug in my code with variables.