fix ams_history wrong column name