fix bug in /remove callback