fix bug with arrays as args