Warning fix: capturing 'self' strongly in a block