fix invalid searchtype and enchant book