Fix incorrect method called in previous commit.