Fixed typo that was causing crashes