Fix dumb refactor bug on Mac