My previous patch had a typo that snuck in. Here's the fixed version.