A small issue with setting the delegate