Fix error in Closing operation