fixed closing errors

corrections made