fixed a bug in previous commit.