pla: fixed bug for movavg shifting