fix the issue with the object not being initilized