Moved deep set method and fixed a bug discovered