fixed #1285