fixed #1077