fix amr size error