fix issue with array setting, mentioned in #16