fix the permission issue