fix bug under gnu/4.8.2(test on titan)