some variables are not properly set