Fixed server crash with the lens.