fixed bugs in configure file