fixed #1019