Fix bug with incorrect flag values for inherited ace in some cases.