fixed bug introduced by the last commit.