fixed bug of 1002