remove redundant variable

remove redundant variable in callbacks