fixed bug of #7