fix crash if delegate did not implement the delegate methods