fixed the permission problem