Fix wrong scope for in prompt filter