Fixing a bug @jd noticed.