fix issue where a link property might be nil, causing a poor closure