fixed bug with multiple objects of the same type on the scene