try to separate new_session to see if that fixes select_window