fixed #1275