fixed #1076