fix compiler error: initializer element is not a compile-time constant