fixed #1052