Change `this` to `_window` in apply()