Changed wrong variable passed.