Fixing a typo that causes a crash