fix localsites var on mac