Fix permission editing error