fix #413. Don't assume the group by interval is > second