fixed #1365