fixed #1099