Reordering of 'remove' callback and fixing forgoten apply() call.