fix configure script when initializing a new instance