Fix 'marks' and 'mark' functions on Mac