Fixed a handle leak