fix crashes due to un-retained callback blocks