Bug fix in User and Permission.