fixed chat bug
consistent variable names