fixes mac file locking