Fix remaining warnings

@stefanbeller

That warning meant that object is not yet constructed but already used for another object creation. Fixed that

For #994