Corrected a bug, juste a mistake in the name of a variable.