fixed duplicate object error