bug fix for cond variable, pass test agility_drill.c