Fix broken rendering of objects