fix a small error make by nullspeaker

this is a branch of nullspeaker's ch and there were a few small error in it, this small error is in one of nullspeaker commit.