Fixed bug in ABMD

When MIN keyword was not used, an array was set as empty and later
accessed.