fix bug with join-objs