Fixed critical bug introduced with previous commit.