fixed #1027