IMO a better fix is to only pass add $pathPrefix:

``` php
$this->setValues($value, sprintf('%s[%s]', $pathPrefix, $key));
```