Fix an error with the last commit that would have caused a crash.