fixed bug with arity validation faililng on 1.9+