Fix delegate not found bug