fixed #1078