Small fix for addArray