fix bug code
nag wrapper