timewindow closing is now correct