array merge bugfix