fix nil delegate