fix: the initializer should return error if failed to initialization.