fix bug: divide wrong months when calc avg of recent 3 months