fix bug of old version