Replaced assign with weak

Replaced assign with weak