fix delete local object issue