fix broken for mac