Fixed #918 (Search does not work for guest users)