fix bugs for AMCObject