Fix association method scope issues, set parentNode when loading