Fix memory view search bug

I forgot to reset a variable. After searching you couldn't edit memory anymore.