fixed rendering multiple objects