fix rebuild with users in multiple groups