Bug fix - avoids "permission denied" message