Use method instead of block for attachment to attempt to fix crash