Fix bug #828 Updating entity classes in permission manager not working