small fix to avoid retain cycle

delegate reference should be weak
Merge pull request #1 from valnoc/bugfix

small fix to avoid retain cycle