scope apply fix