Fixed incorrect throw triggered by prev. commit.