Fix variable error on mac