Fixed duplicate object bug; Fixed destruction bug;