Error for escaping reference to local static array