fixed bug issue of #1213

fixed issue #1213