Fix bug where granted action was duplicated.