Wrong paramter for work in array