amr bug fix.