Fix via() where condition (fixes #52)