By rblanker: Fixing minor notices.
By rblanker: Fixed search when no filter was present.
By rblanker: Fixing renamed function in sync code.