Avg temp. values calculations fixed