fixed problem where paramClass wasn't constrained properly