fix an error in permissions