fixed delegate that wouldn't get triggered