Thanks,
That works now, but search by name doesn't work anymore.

Did the changes in the code affect that?