Scoping the context before asking for the currentPreset.

Fixes #1121.