less: fix a bug from the big refactor