fix correctly marking granted apps