Fix a bug that causes initialization failure