oops, fix a bug introduced in 1772fe9. Tests FTW