bugfix for latest array change