Fixed warning and strong reference to delegate