Fixed a bug happened in the precedent commit.