fixed empty array