Fixed a crash that was introduced with 0198fb8.