fixed #1051