Fixed search mag bug.