Fixed scope apply issue