fixed #1278