fix configuration bugs