Fixed some wrong variable assignments