fixed duplicate object being returned