bugfix: extra element is added to WHERE array when addWhere(array) is used