fix: reference to deleted window