Fixed error when  is array