Fixed canEdit bug on public switch