Fixed wrong access to variable.