fixed marker undefined error, but search not working for entries