fixed delegate error