Fix trying to call object as object is being made