Protect against missing  variables