entities: fix bug in get_current_and_old_members