fix closing on the same time