Fixed a wrong variable