Fix object creation