fix bug found by mnot:

http://lists.w3.org/Archives/Public/www-archive/2014Nov/0015.html