fixed configure check