Fixed a crash with previous commit.