fix #301 so :class queries work