is the same window being emitted twice here?