Changed patch for little bug

On creating a new object no tab would be opened, this patch fixes this.