fix arrange_cross and resize_window()
fix arrange_cross