fixed a configure bug