fix get cached entity when no cached version exists