fix for delegate method not being called