Fixed bug where avgX is not defined on player join.