fix delegate error