fixed #1049