fixed remove_window bug that i just added