fix bug in oRoutine:remove