fix bug and update configure