Fixed minor issue with deconstructor.