fix `initializer element is not constant` error