bugfix: couldn't constrain single parameters, because of indexing of np