fix issue with passing object as array