fix mac restart