fixed #1187