fixed #1265