bad iterator ref