Fixed two minor errors related to the previous commit.