Fix uninitialised values passed to resolution function in first cyle