fixed errors in uammsearch