fixed #1321