fix unary classification (fix #25)