fix getValue for multiselects

This makes sure the square brackets added in line 462 get removed in the getValue function