configure bug fixes