Array problem solved