Fixed bug in moving_avg and moving_max that stopped these functions working with objects