strange bug with not empty array