Fixed delegate crash