fixed bug in configure