Fixes crashing bug that I introduced in my last commit.