object creation bug fix