fix when there is no queried object