Fixed wrror in array construction