Fix interactive r problem: when the mark has been yet activated, function does not work