Update configure

fix a bug!