pla: fixed bug for movavg