fixed #1321

fixed #1321