AMOscmp bug fixed