Fixed search feature

was modifying the taskbuffer by mistake