Protect against undefined options
Fix defaults for scopes