Quick fix for generate_members' recursion issue. TBD