Minor fix for Tornado<=2.0