Fixed possible exception case from previous commit.