Undefined vars re-added in sync function

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>