Search function update

It was working and I have no idea why.
But it shouldn't.

Fixed, now it REALLY works and know why.