Fix crashing bug from typo