fix search when viewpoint id is not saved