fix osX startup