Fixed a potential error in u_window calculation